//
//  DrawGrid.h
//  Ikinloop-demo
//
//  Created by Li Shen on 2021/4/22.
//  Copyright © 2021 lyh. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DrawUtils.h"

NS_ASSUME_NONNULL_BEGIN

@interface DrawGrid : NSObject

//背景颜色
@property (nonatomic, assign) UIColor *bgColor;
//背景大格子颜色
@property (nonatomic, strong) UIColor *gridColor;
//背景小格子颜色
@property (nonatomic, strong) UIColor *smallgridColor;
//大格子宽度
@property (nonatomic, assign) CGFloat gridLineWidth;
//小格子宽度
@property (nonatomic, assign) CGFloat smallGridLineWidth;


- (instancetype)initWithLayer:(CALayer*)layer;

- (instancetype)initWithLayer:(CALayer*)layer context:(CGContextRef)context;

- (void)reload;

- (void)drawBackgroundGrid;

- (void)drawBackgroundGridWithContext;
@end

NS_ASSUME_NONNULL_END
